<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="renderer" content="webkit">
    <meta content="telephone=no" name="format-detection">
    <title>公共空间租赁详情</title>
    <link rel="stylesheet" href="../addons/orange_spacerental/style/css/rent.css"/>
    <link rel="stylesheet" href="../addons/orange_spacerental/style/weui/weui.css"/>
</head>

<body ontouchstart>
<div class="container">
    <div class="orange-title">

        <!--1 待审核 2 预约成功 -1 预约失败 -2已使用 -3 已过期-->
        <p >预约时间：{php echo date('Y-m-d H:i', $orderInfo['create_time']);}</p>
        <div class="icon-box">

            {if $isexpired == true}
                <span class="icon icon-wrong"></span><span class="check-type">已过期</span>
            {else}
                {if $orderInfo['status'] == 1}
                <span class="icon icon-ing"></span><span class="check-type">待审核</span>
                {elseif $orderInfo['status'] == 2}
                <span class="icon icon-done"></span><span class="check-type">预约成功</span>
                {elseif $orderInfo['status'] == -1}
                <span class="icon icon-wrong"></span><span class="check-type">预约失败</span>
                {elseif $orderInfo['status'] == -2}
                <span class="icon icon-wrong"></span><span class="check-type">已使用</span>
                 {elseif $orderInfo['status'] == -3}
                <span class="icon icon-wrong"></span><span class="check-type">已过期</span>
                {/if}
            {/if}


        </div>
    </div>
    <div class="check-info">
        <p>租赁类型：{php echo $this->getSpaceTypeName($orderInfo['space_type']);}</p>
        <p>租赁日期：{$orderInfo['day']}</p>
        <p>租赁时间：{$orderInfo['pro_names']}</p>
        <p>租赁地址：{$spaceInfo['space_address']}</p>
        <p>租赁事由：{$orderInfo['apply_content']}</p>
    </div>
    <div class="check-info">
        <a href="javascript:;">
            <a href="{php echo $this->createMobileUrl('SpaceRentalOrderRecord');}"><span class="icon icon-histroy"></span><span class="check-type">查看我的历史数据</span></a>
        </a>

    </div>
</div>
<script src="../addons/orange_spacerental/style/js/jquery-2.1.4.min.js"></script>
<script src="../addons/orange_spacerental/style/js/weuiAct.js"></script>
<script src="../addons/orange_spacerental/style/js/common.js"></script>
</body>
</html>